package com.acme;

public class SavingAccount implements Account {
	double balance;

	public SavingAccount(double initial) {
		balance = initial;
	}

	@Override
	public void deposit(double amount) {
		balance += amount;
	}

	@Override
	public void withdraw(double amount) {
		if (balance >= amount) {
			balance -= amount;
		}

	}

	@Override
	public void getBalance() {
		System.out.println(balance);
	}

}
